package unit_5;

public class Demo03 {
    public static int Fib(int i) {
        if(i == 1 || i == 2) return 1;
        return Fib(i - 1) + Fib(i - 2);
    }
    public static void main(String[] args) {
        int[] f = new int[20];
        for(int i = 0; i < 20; i++){
            f[i] = Fib(i + 1);
            System.out.print(f[i] + " ");
        }
    }
}
